package cn.com.sise.mapper;

import cn.com.sise.pojo.Freshman;
import org.apache.ibatis.annotations.*;

public interface FreshmanMapper {
    @SelectProvider(type = FreshmanSqlProvider.class,method = "findFreshmanByMultiConditionSQL")
    public FreshmanMapper findFreshmanByMultiCondition(
            @Param("ticketNumber") String ticketNumber,
            @Param("idCard") String idCard,
            @Param("stuNo") String stuNo);

    @InsertProvider(type = FreshmanSqlProvider.class, method = "insertFreshmanSQL")
    public int insertFreshman(Freshman freshman);

    @UpdateProvider(type = FreshmanSqlProvider.class, method = "updateFreshmanSQL")
    public int updateFreshman(Freshman freshman);

    @DeleteProvider(type = FreshmanSqlProvider.class, method = "deleteFreshmanSQL")
    public int deleteFreshman(String freshman);
}
